package week5;

/**
 * Created by dell on 2017/3/25.
 */
public class TryCatchStackTraceDemo2 {
    public static void main(String[] args) {
        try {
            c1();
        } catch (NullPointerException ex) {
            ex.printStackTrace();
        }
    }
    static void c1() {
        try {
            b1();
        } catch (NullPointerException ex) {
            ex.printStackTrace();
            throw ex;
        }
    }
    static void b1() {
        a1();
    }
    static String a1() {
        String text = null;
        return text.toUpperCase();
    }
}
